const router = require('koa-router')(),
    typeController = require('../controller/type'),
    loginCheck = require('../middlewares/logincheck');
router.prefix('/type');
router.post('/get_type', typeController.getTypeC);
router.post('/create_type',loginCheck, typeController.createTypeC);
router.post('/destroy_type',loginCheck, typeController.destroyTypeC);
router.post('/update_type',loginCheck, typeController.updateTypeC);
module.exports = router; 